/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.MsgType;

public interface MsgTypeDao extends Dao {

    /**
     * Retrieves all of the msgTypes
     */
    public List getMsgTypes(MsgType msgType);

    /**
     * Gets msgType's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the msgType's id
     * @return msgType populated msgType object
     */
    public MsgType getMsgType(final Integer id);

    /**
     * Saves a msgType's information
     * @param msgType the object to be saved
     */    
    public int saveMsgType(MsgType msgType);

    /**
     * Removes a msgType from the database by id
     * @param id the msgType's id
     */
    public void removeMsgType(MsgType msgType);
}

